package com.cjl.designpattern.factory;

public class FactoryConstranit {
    public static void main(String[] args) {
        new Foo2<Integer>(new FactoryImpl());

        new Foo2<Widget>(new Widget.Factory());
    }
}
